import request from '@/utils/request'
 

export function listInstance(query) {
  return request({
    url: '/flowable/instance/list',
    method: 'get',
    params: query
  })
}
export function getlistByMyInvolved(query) {
  return request({
    url: '/flowable/instance/getlistByMyInvolved',
    method: 'get',
    params: query
  })
}



 
export function start(parameter) {
  return request({
      url: '/flowable/instance/start',
      method: 'post',
      data: parameter
  })
}
export function getFormData(query) {
  return request({
    url: '/flowable/instance/formData',
    method: 'get',
    params: query
  })
}

export function getComments(query) {
  return request({
    url: '/flowable/instance/comments',
    method: 'get',
    params: query
  })
}

export function queryById(query) {
  return request({
    url: '/flowable/instance/queryById',
    method: 'get',
    params: query
  })
}
export function deleteInstance(id,cascade) {
  return request({
      url: '/flowable/instance/delete/'+id+"/"+cascade,
      method: 'delete',
      data: null
  })
}









  

